package string;
//boolean startsWith(String s)
public class StartsWithDemo {
    public static void main(String[] args) {
        String str="thinking in java";//java编程思想
        boolean start =str.startsWith("think");
        System.out.println(start);
        boolean end=str.endsWith(".cn");
        System.out.println(end);






    }
}
